﻿using System;
using Gtk;

namespace GtkSharpTutorial
{
    class Program
    {
        public class label
        {

            static void delete_event(object obj, DeleteEventArgs args)
            {
                Application.Quit();
            }

            static void exitbutton_event(object obj, EventArgs args)
            {
                Application.Quit();
            }

            public static void Main(string[] args)
            {
                Application.Init();

                var form = new Form();
                form.OnDeleteEvent += delete_event;
                form.Show();

                Application.Run();
            }
        }

    }
}
